<?php /* Smarty version Smarty-3.1.8, created on 2012-11-04 13:48:27
         compiled from "E:\www\teraco/templates\admin\product_all\add.temp.html" */ ?>
<?php /*%%SmartyHeaderCode:143935096722b7a9c16-30003439%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'b4df8bdf176d25df2554ace81322860f04810e02' => 
    array (
      0 => 'E:\\www\\teraco/templates\\admin\\product_all\\add.temp.html',
      1 => 1351441324,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '143935096722b7a9c16-30003439',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'menu' => 0,
    'searchtype' => 0,
    'infoText' => 0,
    'infoClass' => 0,
    'base_url' => 0,
    'formId' => 0,
    'objectLanguages' => 0,
    'objectlang' => 0,
    'objectInfo' => 0,
    'arrayavatar' => 0,
    'avatar' => 0,
    'url' => 0,
    'video' => 0,
    'code' => 0,
    'colour' => 0,
    'subCategories' => 0,
    'object' => 0,
    'arraycid' => 0,
    'itemcid' => 0,
    'lang' => 0,
    'messages' => 0,
    'arrRelax' => 0,
    'relaxid' => 0,
    'pid' => 0,
    'listCategories' => 0,
    'listStatus' => 0,
    'keywords' => 0,
    'date_created' => 0,
    'hot' => 0,
    'home' => 0,
    'op' => 0,
    'act' => 0,
    'oId' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5096722bafa862_82456935',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5096722bafa862_82456935')) {function content_5096722bafa862_82456935($_smarty_tpl) {?><?php if (!is_callable('smarty_function_l')) include 'E:\\www\\teraco\\libraries\\plugins\\function.l.php';
?><?php $_smarty_tpl->tpl_vars['formId'] = new Smarty_variable('add', null, 0);?>
<div id="content">
    <div class="highlight">
        <?php if (isset($_smarty_tpl->tpl_vars['menu']->value)){?><?php echo $_smarty_tpl->tpl_vars['menu']->value;?>
<?php }?>
        <?php if (isset($_smarty_tpl->tpl_vars['searchtype']->value)){?><?php echo $_smarty_tpl->tpl_vars['searchtype']->value;?>
<?php }?>
        <?php if ($_smarty_tpl->tpl_vars['infoText']->value){?>
            <div class="<?php echo $_smarty_tpl->tpl_vars['infoClass']->value;?>
">
                <h4>Result:</h4>
                <p><?php echo $_smarty_tpl->tpl_vars['infoText']->value;?>
</p>
            </div>
        <?php }?>
        <?php echo $_smarty_tpl->getSubTemplate ("admin/toolbar.temp.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('title'=>'toolbar'), 0);?>
  
        <div class="formType">
            <form action="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
" method="post" id="<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
" name="<?php echo $_smarty_tpl->tpl_vars['formId']->value;?>
" enctype="multipart/form-data">
                <fieldset>
                <div class="left">
                    <div class="titles"><?php echo smarty_function_l(array('s'=>'infoneed'),$_smarty_tpl);?>
</div>
                    <div style="clear:both;">
                    <ul class="tabs">
                    	<li class="tab"><?php echo smarty_function_l(array('s'=>'background'),$_smarty_tpl);?>
</li>
                    	<!--<li class="tab"><?php echo smarty_function_l(array('s'=>'images'),$_smarty_tpl);?>
</li>-->
                        <!--<li class="tab"><?php echo smarty_function_l(array('s'=>'video'),$_smarty_tpl);?>
</li>-->
                        <li class="tab"><?php echo smarty_function_l(array('s'=>'download'),$_smarty_tpl);?>
</li>
                        <li class="tab selected"><?php echo smarty_function_l(array('s'=>'General'),$_smarty_tpl);?>
</li>
<!--
                        <?php if ($_smarty_tpl->tpl_vars['objectLanguages']->value){?>
                            <?php  $_smarty_tpl->tpl_vars['objectlang'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['objectlang']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['objectLanguages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['objectlang']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['objectlang']->key => $_smarty_tpl->tpl_vars['objectlang']->value){
$_smarty_tpl->tpl_vars['objectlang']->_loop = true;
 $_smarty_tpl->tpl_vars['objectlang']->index++;
 $_smarty_tpl->tpl_vars['objectlang']->first = $_smarty_tpl->tpl_vars['objectlang']->index === 0;
?> 
                            	<li class="tab <?php if ($_smarty_tpl->tpl_vars['objectlang']->first){?>selected<?php }?>"><?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('name');?>
</li>
                            <?php } ?>
                        <?php }?>
-->
                    </ul>
                    <div class="tabcontent">
                        <p>
                            <span><?php echo smarty_function_l(array('s'=>'Please choice a background for this news...'),$_smarty_tpl);?>
</span>
                            <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('background')!=''){?>
                                    <img src="<?php echo Pick_Core_Upload::getImagePath($_smarty_tpl->tpl_vars['objectInfo']->value->getField('background'));?>
" style="max-width: 696px; max-height: 400px;" /><br /><br />
                                <?php }?>
                            <?php }?>
                            <input type="file" name="background" id="background" />
                        </p>
                        <br class="clear">
                    </div>  
<!--
                    <div class="tabcontent">
                        <?php if ($_smarty_tpl->tpl_vars['arrayavatar']->value){?>
                        <p><span><?php echo smarty_function_l(array('s'=>'notetodeletepicture'),$_smarty_tpl);?>
</span></p>
                        <?php  $_smarty_tpl->tpl_vars['avatar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['avatar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arrayavatar']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['avatar']->key => $_smarty_tpl->tpl_vars['avatar']->value){
$_smarty_tpl->tpl_vars['avatar']->_loop = true;
?>
                        <div class="division4">
                            <img src="<?php echo $_smarty_tpl->tpl_vars['url']->value->getFullUrlAvatar('news','avatar',$_smarty_tpl->tpl_vars['avatar']->value);?>
"/>
                            <input type="checkbox" name="del_images[]" style="width:auto" value="<?php echo $_smarty_tpl->tpl_vars['avatar']->value;?>
"/>
                        </div>
                        <?php } ?>
                        <?php }?>
                        <p>
                            <label for="avatar"><?php echo smarty_function_l(array('s'=>'avatar'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'avatar_help'),$_smarty_tpl);?>
</span>
                            <input type="file" name="avatar[]"/>                             
                            <label id="uploadfiles" style="float:right;"><a href="javascript:void(0)" onclick="addImages();"><?php echo smarty_function_l(array('s'=>'clickheretoaddupload'),$_smarty_tpl);?>
</a></label>
                        </p>
                    </div>
-->
                    <div class="tabcontent">
                        <p>
                            <label for="files"><?php echo smarty_function_l(array('s'=>'td'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'td_help'),$_smarty_tpl);?>
</span>
                            <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('files1')!=''){?>
                                <a href="<?php echo Pick_Core_Upload::getFilePath($_smarty_tpl->tpl_vars['objectInfo']->value->getField('files1'),'avatar');?>
">
                                    <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/images/file_icon.png" style="max-width: 696px; max-height: 400px;" /><br /><br />
                                </a>
                                <input type="checkbox" name="background_del" style="width:auto" />
                                <?php }?>
                            <?php }?>
                            <input type="file" name="files1" id="files1" />
                        </p>
                        <p>
                            <label for="msds"><?php echo smarty_function_l(array('s'=>'msds'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'msds_help'),$_smarty_tpl);?>
</span>
                            <?php if (is_object($_smarty_tpl->tpl_vars['objectInfo']->value)){?>
                                <?php if ($_smarty_tpl->tpl_vars['objectInfo']->value->getField('files2')!=''){?>
                                <a href="<?php echo Pick_Core_Upload::getFilePath($_smarty_tpl->tpl_vars['objectInfo']->value->getField('files2'),'avatar');?>
">
                                    <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/images/file_icon.png" style="max-width: 696px; max-height: 400px;" /><br /><br />
                                </a>
                                <?php }?>
                            <?php }?>
                            <input type="file" name="files2" id="files2" />
                        </p>
                    </div>
<!--                    
                    <div class="tabcontent">
                        <p>
                            <label for="video"><?php echo smarty_function_l(array('s'=>'video'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'video_help'),$_smarty_tpl);?>
</span>
                            <input type="text" name="video" value="<?php echo $_smarty_tpl->tpl_vars['video']->value;?>
" />
                        </p>                    
                        <p style="display:none">
                            <label for="video"><?php echo smarty_function_l(array('s'=>'video'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'video_help'),$_smarty_tpl);?>
</span>
                            <input type="file" name="video" id="video" />
                        </p>                        
                    </div>
-->
                    <div class="tabcontent selected">
                        <p>
                            <label for="code"><?php echo smarty_function_l(array('s'=>'code'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'code_help'),$_smarty_tpl);?>
</span>
                            <input type="text" name="code" value="<?php echo $_smarty_tpl->tpl_vars['code']->value;?>
" />
                        </p> 
                        <p>
                            <label for="colour"><?php echo smarty_function_l(array('s'=>'colour'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'colour_help'),$_smarty_tpl);?>
</span>
                            <input type="text" name="colour" value="<?php echo $_smarty_tpl->tpl_vars['colour']->value;?>
" />
                        </p>                   
                        <p style="display:none">
                            <label for="video"><?php echo smarty_function_l(array('s'=>'video'),$_smarty_tpl);?>
</label>
                            <span><?php echo smarty_function_l(array('s'=>'video_help'),$_smarty_tpl);?>
</span>
                            <input type="file" name="video" id="video" />
                        </p>                        
                    </div>
<!--
                    <?php if ($_smarty_tpl->tpl_vars['objectLanguages']->value){?>
                        <?php  $_smarty_tpl->tpl_vars['objectlang'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['objectlang']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['objectLanguages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['objectlang']->index=-1;
foreach ($_from as $_smarty_tpl->tpl_vars['objectlang']->key => $_smarty_tpl->tpl_vars['objectlang']->value){
$_smarty_tpl->tpl_vars['objectlang']->_loop = true;
 $_smarty_tpl->tpl_vars['objectlang']->index++;
 $_smarty_tpl->tpl_vars['objectlang']->first = $_smarty_tpl->tpl_vars['objectlang']->index === 0;
?> 
                            
                            <div class="tabcontent <?php if ($_smarty_tpl->tpl_vars['objectlang']->first){?>selected<?php }?>">
                                <p>
                                    <label for="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_name"><?php echo smarty_function_l(array('s'=>'name'),$_smarty_tpl);?>
 *</label>
                                    <span><?php echo smarty_function_l(array('s'=>'name_help'),$_smarty_tpl);?>
</span>
                                    <input type="text" name="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_name" value="<?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['objectlang']->value->getField('code'),'name');?>
" />
                                </p>
                                <p>
                                    <label for="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_abstract"><?php echo smarty_function_l(array('s'=>'abstract'),$_smarty_tpl);?>
</label>
                                    <span><?php echo smarty_function_l(array('s'=>'abstract_help'),$_smarty_tpl);?>
</span>                             
                                    <textarea name="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_abstract" class="mceSimple" style="width:97% !important"><?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['objectlang']->value->getField('code'),'abstract');?>
</textarea>
                                </p>    
                                <p>
                                    <label for="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_details"><?php echo smarty_function_l(array('s'=>'details'),$_smarty_tpl);?>
 *</label>
                                    <span><?php echo smarty_function_l(array('s'=>'details_help'),$_smarty_tpl);?>
</span>
                                    <textarea name="<?php echo $_smarty_tpl->tpl_vars['objectlang']->value->getField('code');?>
_details" class="mceAdvanced" style="width:97%"><?php echo $_smarty_tpl->tpl_vars['objectInfo']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['objectlang']->value->getField('code'),'details');?>
</textarea>
                                </p>                              
                                <br class="clear"/>
                            </div>

                        <?php } ?>                                   
                    <?php }?> 
 -->               
                    </div>        
                          
                </div>
                <div class="right">
                    <div class="titles"><?php echo smarty_function_l(array('s'=>'infononeed'),$_smarty_tpl);?>
</div>
                    <div id="accordion">
<!--                    
                        <?php if ($_smarty_tpl->tpl_vars['subCategories']->value){?>
                        <div class="title"><?php echo smarty_function_l(array('s'=>'category'),$_smarty_tpl);?>
</div>
                        <div class="content first">                            
                            <p>
                                <span><?php echo smarty_function_l(array('s'=>'category_help'),$_smarty_tpl);?>
</span>
                                <?php  $_smarty_tpl->tpl_vars['object'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['object']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['subCategories']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['object']->key => $_smarty_tpl->tpl_vars['object']->value){
$_smarty_tpl->tpl_vars['object']->_loop = true;
?>

                                    <span class="division2"><input type="checkbox" name="arraycid[]" value="<?php echo $_smarty_tpl->tpl_vars['object']->value->getField('id');?>
" <?php  $_smarty_tpl->tpl_vars['itemcid'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['itemcid']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arraycid']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['itemcid']->key => $_smarty_tpl->tpl_vars['itemcid']->value){
$_smarty_tpl->tpl_vars['itemcid']->_loop = true;
?><?php if ($_smarty_tpl->tpl_vars['object']->value->getField('id')==$_smarty_tpl->tpl_vars['itemcid']->value){?>checked="checked"<?php }?><?php } ?> style="width:30px;"/> <?php echo $_smarty_tpl->tpl_vars['object']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['lang']->value,'name');?>
</span>

                                <?php } ?>                                
                            </p>                               
                        </div>
                        <?php }?>
-->
<!--
                        <div class="title"><?php echo $_smarty_tpl->tpl_vars['messages']->value['relax'];?>
</div>
                        <div class="content">                            
                            <p>
                                <span><?php echo $_smarty_tpl->tpl_vars['messages']->value['relax_help'];?>
</span>
                                <?php  $_smarty_tpl->tpl_vars['object'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['object']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['arrRelax']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['object']->key => $_smarty_tpl->tpl_vars['object']->value){
$_smarty_tpl->tpl_vars['object']->_loop = true;
?>

                                    <span class="division2">
                                        <input type="radio" name="relaxid" value="<?php echo $_smarty_tpl->tpl_vars['object']->value->getField('id');?>
" <?php if ($_smarty_tpl->tpl_vars['object']->value->getField('id')==$_smarty_tpl->tpl_vars['relaxid']->value){?>checked="checked"<?php }?> style="width:30px;"/> 
                                        <?php echo $_smarty_tpl->tpl_vars['object']->value->getFieldLangAdmin($_smarty_tpl->tpl_vars['lang']->value,'name');?>

                                    </span>

                                <?php } ?>                                
                            </p>                               
                        </div>   
-->                
                        <div class="title"><?php echo smarty_function_l(array('s'=>'properties'),$_smarty_tpl);?>
</div>
                        <div class="content">
                            <p>
                                <label for="status"><?php echo smarty_function_l(array('s'=>'category'),$_smarty_tpl);?>
 *</label>
                                <span><?php echo smarty_function_l(array('s'=>'category_help'),$_smarty_tpl);?>
</span>
                                <select name="cid">
                                <option value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
">/</option>
                                    <?php echo $_smarty_tpl->tpl_vars['listCategories']->value;?>

                                </select>
                            </p>
                            <p>
                                <label for="status"><?php echo smarty_function_l(array('s'=>'status'),$_smarty_tpl);?>
 *</label>
                                <span><?php echo smarty_function_l(array('s'=>'status_help'),$_smarty_tpl);?>
</span>
                                <select name="status">
                                    <?php echo $_smarty_tpl->tpl_vars['listStatus']->value;?>

                                </select>
                            </p>
<!--                            
                            <p>
                                <label for="keyword"><?php echo smarty_function_l(array('s'=>'keyword'),$_smarty_tpl);?>
</label>
                                <span><?php echo smarty_function_l(array('s'=>'keyword_help'),$_smarty_tpl);?>
</span>
                                <input type="text" name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
" />
                            </p>
 -->                           
<!--
                            <p>
                                <label for="keyword"><?php echo smarty_function_l(array('s'=>'date_created'),$_smarty_tpl);?>
</label>
                                <span><?php echo smarty_function_l(array('s'=>'date_created_help'),$_smarty_tpl);?>
</span>
                                <input type="text" name="date_created" id="datepicker" value="<?php echo $_smarty_tpl->tpl_vars['date_created']->value;?>
" />
                            </p>
-->
                            <p>
                                <!--<input type="hidden" name="cid" value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
" />-->
                            </p>
<!--                            
							<p class="radioType">
                                <input type="checkbox" name="hot" <?php if ($_smarty_tpl->tpl_vars['hot']->value==1){?>checked="checked"<?php }?> value="1" />
                                <label for="hot"><?php echo smarty_function_l(array('s'=>'hot'),$_smarty_tpl);?>
</label><br />
                                 <span><?php echo smarty_function_l(array('s'=>'hot_help'),$_smarty_tpl);?>
</span>
                            </p> 
-->                            
<!--
                            <p class="radioType">
                                <input type="checkbox" name="home" <?php if ($_smarty_tpl->tpl_vars['home']->value==1){?>checked="checked"<?php }?> value="1" />
                                <label for="home"><?php echo smarty_function_l(array('s'=>'home'),$_smarty_tpl);?>
</label><br />
                                 <span><?php echo smarty_function_l(array('s'=>'home_help'),$_smarty_tpl);?>
</span>
                            </p>                                
-->
                        </div>                      
                    </div>
      
                </div>
                <div class="over">
                    <p class="btnType">
                        <input type="hidden" id="op"  name="op" value="<?php echo $_smarty_tpl->tpl_vars['op']->value;?>
" />
                        <input type="hidden" id="act" name="act" value="<?php echo $_smarty_tpl->tpl_vars['act']->value;?>
" />
                        <input type="hidden" id="oId" name="oId" value="<?php echo $_smarty_tpl->tpl_vars['oId']->value;?>
" />
                        <input type="hidden" id="pid" name="pid" value="<?php echo $_smarty_tpl->tpl_vars['pid']->value;?>
" />
                        <input type="hidden" id="plus" name="plus" value="saveItem"/>
                    </p>
                </div> 
                <br style="clear:both"/>   
                </fieldset>
            </form>
        </div>
    </div>
</div><?php }} ?>